import Vue from 'vue'
import App from './App'
import router from './router'
import VueLazyload from 'vue-lazyload'; //图片懒加载
import VueAwesomeSwiper from 'vue-awesome-swiper'
import 'normalize.css' //重置浏览器默认样式
import './assets/stylus/common.styl'
import './assets/js/flexible'
import fetch from './config/fetch'
import './assets/js/hybrid-api'
import store from './store/'

Vue.use(VueAwesomeSwiper)
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: 'http://static.freepik.com/free-photo/error-2_318-10733.jpg',
  loading: 'http://img.zcool.cn/community/010f4a56629d0932f8754573ff900d.gif',
  attempt: 1
})

Vue.prototype.$fetch = fetch;// ajax
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  template: '<App/>',
  components: { App }
})
